package com.panghl.listener;

import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @Author panghl
 * @Date 2021/6/19 11:13
 * @Description 系统启动完可以做一些业务操作
 **/
@Order(1)
@Component
public class MyApplicationRunner implements ApplicationRunner {
    @Override
    public void run(ApplicationArguments args) throws Exception {
        System.out.println("MyApplicationRunner args 需要在springBoot项目启动时执行的代码");
    }
}
